pushd .
setlocal
@echo on

cd %ELASTOS_ROOT%\src\kernel\bsp\arm\bsp_gingko\bootloader\build tools
copy /y %TARGET_BIN_PATH%\eldr.bin .\tynux_bl

.\splitter ".\tynux_bl" ".\"  /SIZE2048 /SILENT
.\kkfile .\tynux_bl .\spl_kk
.\dx .\spl_kk .\spl.bin

copy /y tynux_bl.001 %TARGET_BIN_PATH%\ipl.bin
copy /y spl.bin %TARGET_BIN_PATH%\spl.bin

::pause
@echo clean temp file ...
del tynux_bl tynux_bl.* .\spl.bin .\spl_kk

@echo on
endlocal
popd
